package com.lianqi.emcpframework.core.bean;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
/**
 * @program emcp-framework
 * @ClassName Copier
 * @description:
 * @author: sky
 * @create: 2018/11/16 22:39
 */
public interface Copier {

    void copy(Object source, Object target, Set<String> ignore, TypeConverter typeConverter);
    default void copy(Object source,Object target,String... ignore){
        copy(source,target,new HashSet<>(Arrays.asList(ignore)),FastBeanCopier.TYPE_CONVERTER);
    }
}
